﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DormMS.Model;
using DormMS.Model.SearchModels;
using DormMS.Model.SearchModels.DropGroup;
using DormMS.Model.ViewModels;

namespace DormMS.IService
{
    public interface IGroupHeadService
    {
        /// <summary>
        /// 分页获取活动列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<V_GroupHead> GetGroupHeadList(int skip, int take, int dropgroupid, ref int total);


        /// <summary>
        /// 获取团详情
        /// </summary>
        /// <param name="groupheadid"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        V_GroupHead GetGroupHeadInfo(int groupheadid, ref int total);


        /// <summary>
        /// 分页获取活动列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<V_GroupHead> GetDropHeadList(DropGroupSearchModel search, ref int total);


        /// <summary>
        /// 根据订单号获取团信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Model.GroupMember GetGroupMemberInfo(string orderno);


        /// <summary>
        /// 根据团id获取团信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Model.GroupHead GetGroupHeadInfoByID(int id);


        /// <summary>
        /// 分页获取活动列表
        /// </summary>
        /// <param name="search"></param>
        /// <param name="total"></param>
        /// <returns></returns>
        IEnumerable<GroupMember> GetDropMemberList(DropGroupSearchModel search, ref int total);
    }
}
